<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
<head th:replace="layouts::header"></head>
<body>
<nav th:replace="layouts::navbar"></nav>
<div class="container1">
    <form th:action="@{/teacher/save}" th:object="${teacher}" method="POST">
        <div class="box">
        <div class="form-group">
            <div>
                <label class="a1">教师编号:</label>
                <input type="text" placeholder="请输入教师编号" th:field="${teacher.teacherNum}">    <br>
                <span th:if="${#fields.hasErrors('teacherNum')}" th:errors="${teacher.teacherNum}"></span>
            </div>
        </div>
        <br>
        <div class="form-group">
            <div>
                <label class="a5">姓名:</label>
                <input type="text" placeholder="请输入姓名" th:field="${teacher.name1}">
                <br>
                <span th:if="${#fields.hasErrors('name1')}" th:errors="${teacher.name1}"></span>
            </div>
        </div>
        <br>
        <div class="form-group">
            <div>
                <label class="a1">性别:</label>
                <label class="a1">
                    <input type="radio" th:field="${teacher.gender}" value="男">男
                </label>
                <label class="a1">
                    <input type="radio" th:field="${teacher.gender}" value="女">女
                </label>
                <br>
                <span th:if="${#fields.hasErrors('gender')}" th:errors="${teacher.gender}"></span>
            </div>
        </div>
        <br>
        <div class="form-group">
            <div>
                <label class="a1">学历:</label>
                <label class="a1">
                    <input type="radio" th:field="${teacher.education}" value="本科">本科
                </label>
                <label class="a1">
                    <input type="radio" th:field="${teacher.education}" value="硕士">硕士
                </label>
                <label class="a1">
                    <input type="radio" th:field="${teacher.education}" value="博士">博士
                </label>
                <label class="a1">
                    <input type="radio" th:field="${teacher.education}" value="博士后">博士后
                </label>
                <br>
                <span th:if="${#fields.hasErrors('education')}" th:errors="${teacher.education}"></span>
            </div>
        </div>
        <br>
        </div>
<div class="a2">
        <button class="btn btn-info" type="submit">新建教师</button>
</div>
    </form>
</div>
</body>
</html>